﻿<%@ Page 
    Language="C#" 
    AutoEventWireup="true" 
    CodeBehind="AlunoManutencao.aspx.cs" 
    Inherits="Arquitetura.UI.WebApp.AlunoManutencao" 
    MasterPageFile="~/Master/Default.Master"
    Theme="Default"
%>
<asp:Content ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="cphContent" runat="server">
    <h1>
        Cadastrar Aluno
    </h1>
    <asp:UpdatePanel ID="upAlunoManutencao"
        runat="server"
        ChildrenAsTriggers="true"
        RenderMode="Block"
        UpdateMode="Conditional">
        <ContentTemplate>
            <div class="Cadastro">
                <table>
                    <tr>
                        <td>
                            <h2>
                                Dados do Aluno
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtNome.ClientID %>'>
                                <asp:Label ID="lblNome"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Nome:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNome"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvNome"
                                runat="server" 
                                ControlToValidate="txtNome"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtSobrenome.ClientID %>'>
                                <asp:Label ID="lblSobrenome"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Sobrenome:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSobrenome"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvSobrenome"
                                runat="server" 
                                ControlToValidate="txtSobrenome"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtCPF.ClientID %>'>
                                <asp:Label ID="lblCPF"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="CPF:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCPF"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvCPF"
                                runat="server" 
                                ControlToValidate="txtCPF"
                                ValidationGroup="vgAlunoManutencao" 
                            /><act:MaskedEditExtender ID="meeCPF"
                                runat="server" 
                                SkinID="CPF" 
                                TargetControlID="txtCPF" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtRG.ClientID %>'>
                                <asp:Label ID="lblRG"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="RG:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRG"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvRG"
                                runat="server"
                                ControlToValidate="txtRG"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtProntuario.ClientID %>'>
                                <asp:Label ID="lblProntuario"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Prontuário:" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtProntuario"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvProntuario"
                                runat="server"
                                ControlToValidate="txtProntuario"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h2>
                                Dados da Mãe
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtNomeMae.ClientID %>'>
                                <asp:Label ID="lblNomeMae"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Nome:" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNomeMae"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvNomeMae"
                                runat="server"
                                ControlToValidate="txtNomeMae"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtSobrenomeMae.ClientID %>'>
                                <asp:Label ID="lblSobrenomeMae"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Sobrenome:" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSobrenomeMae"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvSobrenomeMae"
                                runat="server"
                                ControlToValidate="txtSobrenomeMae"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtCPFMae.ClientID %>'>
                                <asp:Label ID="lblCPFMae"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="CPF:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCPFMae"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvCPFMae"
                                runat="server"
                                ControlToValidate="txtCPFMae"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtRGMae.ClientID %>'>
                                <asp:Label ID="lblRGMae"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="RG:" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRGMae"
                                runat="server" 
                            /><asp:CustomValidator ID="cuvRGMae"
                                runat="server"
                                ControlToValidate="txtRGMae"
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                    <tr>
                        <td />
                        <td>
                            <asp:Button ID="btnSalvar"
                                runat="server"
                                OnClick="btnSalvar_Click"
                                Text="Salvar" 
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                </table>
            </div>
            <asp:ValidationSummary ID="vasAlunoManutencao"
                runat="server" 
                ValidationGroup="vgAlunoManutencao" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>